﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace AutoCooker6
{
    /// <summary>
    /// 
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            AutoCooker6 easyCooker = new AutoCooker6();
            Stopwatch stopwatchClock = new Stopwatch();

            easyCooker.started += new CookStartedReply(Mother.CookStartedReply);
            easyCooker.completed += new CookCompletedReply(Mother.CookCompletedReply);
            easyCooker.completed += new CookCompletedReply(Son.CookCompletedReply);

            stopwatchClock.Start();
            easyCooker.DoCook();
            stopwatchClock.Stop();
            
            Console.ReadLine();
        }
    }
}
